<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>部门管理</title>
    <%@include file="../../../static/common/common.jsp"%>
    <script src="/static/js/department.js"></script>
</head>
<!--非常关键-->
<jsp:include page="/static/style/loader.jsp"></jsp:include>
<body>
<table id="dept_datagrid"></table>
<div id="dept_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">新增</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a id="changeState_btn" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
       data-cmd="del">删除</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
</div>
<div id="save_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
</div>
<div id="dept_dialog">
    <form id="dept_form" method="post">
        <input id="deptId" type="hidden" name="id">
        <table align="center" style="margin-top: 15px" cellspacing="10">
            <tr>
                <td>部门编号:</td>
                <td><input class="easyui-textbox" name="sn" prompt="请输入部门编号"
                           ></td>
            </tr>
            <tr>
                <td>部门名称:</td>
                <td><input class="easyui-textbox" name="name"></td>
            </tr>
            <tr>
                <td>部门状态:</td>
                <td><input class="easyui-combobox" name="state" data-options="data:[
                        {
                            name:'正常',
                            value:'1'
                        },{name:'停用',value:'0'}],valueField:'value',textField:'name',panelHeight:'auto'"></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
